package club.xshiwu.springcloud.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存实体
 * Created by Intellij IDEA.
 * Date:  2020/6/12
 * @author xsw
 */
@Mapper
public interface StorageMapper {
    /**
     * 库存数量管理
     * @param productId 产品id
     * @param count 已用数量或者以增加数量
     */
    void decrease(@Param("productId") Long productId, @Param("count") Integer count);
}
